import store from '@/store'
import Vue from 'vue'
function btnPermit (btn) {
  return store.state.account.button.includes(btn)
}
Vue.directive('btnPermit', {
  inserted (el, binding) {
    if (!store.state.account.button.includes(binding.value)) {
      el.remove()
    }
  }
})
Vue.prototype.$btnPermit = btnPermit
